{# Actions for grid-style template card. Expects `template` in context. #}
<div class="template-actions">
    <button class="btn-template-action btn-template-edit" 
            data-template-id="{{ template.id }}" data-action="edit" title="编辑模板">
        <i class="fas fa-edit"></i> 编辑
    </button>
    <button class="btn-template-action btn-template-preview" 
            data-template-id="{{ template.id }}" data-action="preview" title="预览标签">
        <i class="fas fa-eye"></i> 预览
    </button>
    <button class="btn-template-action btn-template-use" 
            data-template-id="{{ template.id }}" data-action="use" title="使用打印">
        <i class="fas fa-print"></i> 使用
    </button>
    <button class="btn-template-action btn-template-duplicate" 
            data-template-id="{{ template.id }}" data-action="duplicate" title="复制模板">
        <i class="fas fa-copy"></i> 复制
    </button>
    {% if template.created_by == request.user %}
    <button class="btn-template-action btn-template-delete" 
            data-template-id="{{ template.id }}" data-action="delete" title="删除模板">
        <i class="fas fa-trash"></i> 删除
    </button>
    {% endif %}
</div>
